package com.adee.gulimall.search.controller;

import co.elastic.clients.elasticsearch.ElasticsearchClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/test")
@RestController
public class TestController {
    @Autowired
    ElasticsearchClient elasticsearchClient;

    @RequestMapping("/hello")
    // @RequiresPermissions("product:attr:list")
    public String list(){
        return "hello";
    }

    @RequestMapping("/index")
    // @RequiresPermissions("product:attr:list")
    public String index(){
        return "hello";
    }

    @RequestMapping("/doc")
    // @RequiresPermissions("product:attr:list")
    public String doc(){
        return "hello";
    }


}
